﻿

@{
    Layout = null;
    ViewBag.MenuId = 2;
}

<div class="w_acRule" ng-controller="ActivityRoleController">
    <div class="w_acrule_top">降拼活动规则</div>
    <ul class="w_acRule_main">
        <li ng-repeat="model in dt">
            {{model.RuleContent}}
        </li>
    </ul>
    <!-- 底部 -->
    @Html.Partial("_dgfoot")
    <!--end 底部 -->
</div>
<script type="text/javascript">
    App.controller('ActivityRoleController', [
            '$scope', '$http', '$rootScope', '$stateParams', '$state', '$filter',
        function ($scope, $http, $rootScope, $stateParams, $state, $filter) {


            $scope.dt = {};

            $http.post("/Activity/GetRole", { type: 1 }).then(function (response) {
                debugger
                if (response.data.Result && response.data.Result != "") {
                    $scope.dt = response.data.Result;
                }
            });
            var tt = function () {
                $rootScope.WxShare($rootScope.pageTitle(), '优品三悦', location.href, $rootScope.LogoUrl);
            }

            setTimeout(tt, 1000)
        }]);
</script>